Getting and Setting the Pen Width
The pen width property of a style object specifies the width at which QuickDraw GX should draw a shape's contours. A pen width of 0 specifies a hairline. QuickDraw GX always draws hairlines at the resolution of the output device--one pixel wide. The pen width also affects dashing: QuickDraw GX scales a shape's dashes (in the y-coordinate direction) by the pen width. Also, the pen width affects the clip shape that QuickDraw GX uses to clip the dashes when a shape's clip dash attribute is set.You can use the
GXGetStylePen
function to determine the pen width of a style object and theGXSetStylePen
function to change the pen width of a style object.The
GXGetShapePen
andGXSetShapePen
functions provide a way to determine and change the pen width of the style object associated with a particular shape.
Subtopics
- GXGetStylePen
- GXSetStylePen
- GXGetShapePen
- GXSetShapePen
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help